package test.vo;

import jdbc.InputUtil.InputField;

/**
 * 该类用于写一篇文章的信息
 */
public class Article {
    @InputField(title = "文章名",notNull = true)
    private String title;
    @InputField(title = "目录",notNull = true)
    private String content;
    public Article() {
    }
    public Article(String title, String content) {
        this.title = title;
        this.content = content;
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getContent() {
        return content;
    }
    public void setContent(String content) {
        this.content = content;
    }
    @Override
    public String toString() {
        return "Article{" +
                "title='" + title + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
